import {useCookies} from 'vue3-cookies'

const {cookies} = useCookies() as any

export const getToken = () => {
    return cookies.get('HuaAdmin-Token')
}

export const setToken = (token: string): void => {
    cookies.set('HuaAdmin-Token', token)
}

export const removeToken = (): void => {
    cookies.remove('HuaAdmin-Token')
}

